import {request} from "./core";
import {METHOD,PATH} from "./config";

const netClient = {
  //获取轮播列表
  getStoreList(params){
    return request(METHOD.GET,PATH.getStoreList,params)
  },
//获取商品列表数据
  getGoodsList(params){
    return request(METHOD.GET,PATH.getGoodsList,params)
  },
  //获取到详情页的商品数据
  detailsList(params){
    return request(METHOD.GET,PATH.detailsList,params)
  },
  //获取到分类页面的数据
  classifyList(){
    return request(METHOD.GET,PATH.classifyList)
  },
  login(params){
    return request(METHOD.POST,PATH.login,params)
  }
}

export default netClient;


